Syntax:
GetLastError()
Description:
Returns the last error generated by a task step in the AML language. The
error is returned as a number that uniquely identifies the error. This
is very important function as it allows conditional execution based on
the error generated by a step. If the last step did not generate an error
GetLastError returns 0.
NOTE: This function returns errors for AML only - it does not work with BASIC functions or methods.
Parameter Description
(no parameters)
Example:
Sub
Main
MsgBox
GetLastError()
End Sub
See Also: